package com.example.date;

import java.util.Calendar;

/**
 * @author 沈传尚
 * @date 2022/3/7
 */
public class CalendarTest2 {
    public static void main(String[] args) {
        Calendar calendar = Calendar.getInstance();
        int i = calendar.get(Calendar.YEAR);
        System.out.println(i);
    }
}
